﻿<%@ Page Title="" Language="C#" MasterPageFile="~/FilesPage/FileIndex.master" AutoEventWireup="true"
    CodeFile="ShowFiles.aspx.cs" Inherits="FilesPage_ShowFiles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/Files.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderSon" runat="Server">
    <div id="showFiles">
        <div id="Fileindexoperate">
            <ul class="showFilesULMargin">
                <li>
                    <asp:ImageButton ID="ImageButtonSeach" runat="server" ImageUrl="~/Images/file/seach.gif"
                        Height="20px" PostBackUrl="~/FilesPage/FileSelect.aspx" /></li>
                <li>
                    <asp:ImageButton ID="ImageButtonAddfile" runat="server" ImageUrl="~/Images/file/fmnewfile.gif"
                        Height="20px" PostBackUrl="~/FilesPage/FileManage.aspx" /></li>
                <li>
                    <asp:ImageButton ID="ImageButtonAddFolder" runat="server" ImageUrl="~/Images/file/fmnewfolder.gif"
                        Height="20px" PostBackUrl="~/FilesPage/AddFolder.aspx" />
                </li>
            </ul>
        </div>
        <div id="address">
            <ul class="showFilesULMargin">
                <li>
                    <asp:Label ID="LabelAddress" runat="server" Text="地址：" Font-Bold="True" ForeColor="White"
                        Height="15px"></asp:Label>
                </li>
                <li>
                    <asp:TextBox ID="TextBoxShowFilesAddress" runat="server" Width="400px" Height="15px"
                        Enabled="False"></asp:TextBox>
                </li>
            </ul>
        </div>
        <div>
            <asp:GridView ID="GridViewShowFiles" runat="server" CellPadding="4" ForeColor="#333333"
                GridLines="None" Width="560px" AutoGenerateColumns="False">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <img alt="" src='<%#Eval("DocTypeImage") %>' />
                        </ItemTemplate>
                        <HeaderStyle Width="16px" />
                        <ItemStyle Width="16px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="文件名">
                        <ItemTemplate>
                            <asp:LinkButton ID="DocName" runat="server" OnClick="DocName_Click"><%#Eval("DocId")%></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注">
                        <ItemTemplate>
                            <asp:Label ID="DocMemo" runat="server"><%#Eval("DocMemo")%></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建时间">
                        <ItemTemplate>
                            <asp:Label ID="DocCreatDate" runat="server"><%#Eval("DocCreatDate","{0:D}")%></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上传人">
                        <ItemTemplate>
                            <asp:Label ID="UserId" runat="server"><%#Eval("UserId")%></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="详细">
                        <ItemTemplate>
                            <asp:ImageButton ID="manage" runat="server" ImageUrl="~/Images/file/detail.gif" OnClick="manage_Click" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemTemplate>
                            <asp:ImageButton ID="deleted" runat="server" ImageUrl="~/Images/file/delete.gif"
                                OnClick="deleted_Click" Style="height: 13px" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="DocID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="DocId" runat="server" Text='<%#Eval("DocNo")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Doctype" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="DocType" runat="server" Text='<%#Eval("DocTypeNo")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
